import request from '@/utils/request'

// 查询订单详情列表
export function listOrdersdetail(query) {
  return request({
    url: '/wx/ordersdetail/list',
    method: 'get',
    params: query
  })
}

// 查询订单详情详细
export function getOrdersdetail(detailid) {
  return request({
    url: '/wx/ordersdetail/' + detailid,
    method: 'get'
  })
}

// 新增订单详情
export function addOrdersdetail(data) {
  return request({
    url: '/wx/ordersdetail',
    method: 'post',
    data: data
  })
}

// 修改订单详情
export function updateOrdersdetail(data) {
  return request({
    url: '/wx/ordersdetail',
    method: 'put',
    data: data
  })
}

// 删除订单详情
export function delOrdersdetail(detailid) {
  return request({
    url: '/wx/ordersdetail/' + detailid,
    method: 'delete'
  })
}

// 导出订单详情
export function exportOrdersdetail(query) {
  return request({
    url: '/wx/ordersdetail/export',
    method: 'get',
    params: query
  })
}